package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2024-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Rooms对象", description="")
public class Rooms extends Model<Rooms> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id_rooms", type = IdType.AUTO)
    private Integer idRooms;

    private String nameRooms;

    private Integer yqRooms;

    private Integer buildingsRooms;

    private Integer floorRooms;

    private Integer bedsRooms;

    private Boolean isEnabled;

    private Integer priceRooms;

    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.idRooms;
    }

}
